<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/tags.jsp"%>

<table class="imagetable">

    <tr>
	  <th>设备ID</th> <th>路段</th> <th>收费站名</th> <th>连接状态</th>
	  <th>专网-0</th> <th>专网-1</th> <th>VPN</th> <th>VPN设备</th>
    </tr>
    
    <c:forEach items="${devNetStates}" var="ds" varStatus="vs" >    
      
    <tr>
	<td>${ds.id}</td>
	<td>${ds.roadName}</td> 
	<td>${ds.name}</td> 
	<td>
		<c:if test="${ds.state == 0}">
			在线
		</c:if>
		<c:if test="${ds.state == 1}">
		<font color="red">断开</font>
		</c:if>
	</td>
	
	<%--显示在线监控状态信息--%>
	<c:if test="${ds.state == 0}">
	
	<td>
	 <c:if test="${ds.toPnServerState ==0 }">
	        正常
	 </c:if>
	 <c:if test="${ds.toPnServerState ==1 }">
	      恢复连接
	 </c:if>
	 <c:if test="${ds.toPnServerState ==2 }">
	       <font color="red"> 连接异常</font>
	 </c:if> 
	 <c:if test="${ds.toPnServerState ==4 }">
	      不检测
	 </c:if>
	</td>
	
	<td>
	  <c:if test="${ds.toPnLocalState ==0 }">
	        正常
	 </c:if>
	 <c:if test="${ds.toPnLocalState ==1 }">
	      恢复连接
	 </c:if>
	 <c:if test="${ds.toPnLocalState ==2 }">
	       <font color="red"> 连接异常</font>
	 </c:if> 
	 <c:if test="${ds.toPnLocalState ==4 }">
	      不检测
	 </c:if>
	</td>
	
	<td>
	  <c:if test="${ds.toVpnServerState ==0 }">
	        正常
	 </c:if>
	 <c:if test="${ds.toVpnServerState ==1 }">
	      恢复连接
	 </c:if>
	 <c:if test="${ds.toVpnServerState ==2 }">
	       <font color="red"> 连接异常</font>
	 </c:if> 
	 <c:if test="${ds.toVpnServerState ==4 }">
	      不检测
	 </c:if>
	</td>
	
	<td>
	  <c:if test="${ds.toVpnLocalState ==0 }">
	        正常
	 </c:if>
	 <c:if test="${ds.toVpnLocalState ==1 }">
	      恢复连接
	 </c:if>
	 <c:if test="${ds.toVpnLocalState ==2 }">
	       <font color="red"> 连接异常</font>
	 </c:if> 
	 <c:if test="${ds.toVpnLocalState ==4 }">
	      不检测
	 </c:if>
	</td>
	
	</c:if>
	
	<c:if test="${ds.state != 0}">
	 <td></td>
	 <td></td>
	 <td></td>
	 <td></td>
	 
	</c:if>
	
	
    </tr>
    </c:forEach>
    
  
</table>
    <div class="pageArea_div">
         <%@ include file="/WEB-INF/common/paginator.jsp"%>
    </div>	
